﻿using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;

namespace Server
{
    class Server
    {
        static void Main(string[] args)
        {
            TcpChannel tcpChannel9999 = new TcpChannel(9999);
            ChannelServices.RegisterChannel(tcpChannel9999, true);
            RemotingConfiguration.RegisterWellKnownServiceType(
                Type.GetType("RemoteGame.Game, Game"),
                "Game", WellKnownObjectMode.Singleton);

            System.Console.WriteLine("Press ENTER to quit");
            System.Console.ReadLine();
        }
    }
}
